package file

import "kubeInstall/server/models"

type PkgInfo struct {
	SysPackage []SysPackage `json:"sys_package"`
	//DockerImage []DockerImage `json:"docker_image"`
}

type SysPackage struct {
	ID        string `json:"id" gorm:"primary_key;column:package_id"`
	Name      string `json:"name" gorm:"unique;not null"`
	Size      int64  `json:"size" gorm:"not null"`
	Arch      string `json:"arch"`
	Version   string `json:"version"`
	Installed bool   `json:"installed"`
	SavePath  string `json:"save_path"`
	Comment   string `json:"comment"`
	models.BaseModel
}

func (s SysPackage) TableName() string {
	return "t_install_package"
}
